package test;

import javax.swing.JInternalFrame;
import javax.swing.JPanel;
import java.awt.*;

import board2.*;

public class MyInternalFrame extends JInternalFrame {
	static int openFrameCount = 0;
	static final int xOffset = 520, yOffset = 0;
	TextArea screen;

	public MyInternalFrame() {
		super("Board", true, // resizable
				true, // closable
				false, // maximizable
				false);// iconifiable

		JPanel pan = new JPanel();
		screen = new TextArea();
		pan.add(screen);

		Style12 board = new Style12();

		setSize(board.getSize());
		this.add(board);

		setLocation(xOffset, yOffset);
	}

	public void showtext(char h) {
		screen.append(String.valueOf(h));
	}
}
